package com.sys.SysFeedingRecords.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sys.common.annotation.Excel;
import com.sys.common.core.domain.BaseEntity;

/**
 * 物资库存对象 sys_inventory
 * 
 * @author sys
 * @date 2025-09-19
 */
public class SysInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 物资名称 */
    @Excel(name = "物资名称")
    private String materialName;

    /** 物资编码 */
    @Excel(name = "物资编码")
    private String materialCode;

    /** 类型: feed, medicine, disinfectant, other */
    @Excel(name = "类型: feed, medicine, disinfectant, other")
    private String category;

    /** 单位: kg, g, L, ml, 瓶, 袋等 */
    @Excel(name = "单位: kg, g, L, ml, 瓶, 袋等")
    private String unit;

    /** 累计入库 */
    @Excel(name = "累计入库")
    private BigDecimal totalIn;

    /** 累计出库 */
    @Excel(name = "累计出库")
    private BigDecimal totalOut;

    /** 当前库存 */
    @Excel(name = "当前库存")
    private BigDecimal currentStock;

    /** 预警阈值 */
    @Excel(name = "预警阈值")
    private BigDecimal threshold;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNumber;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /** 有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiryDate;

    /** 状态: 1-正常, 0-停用 */
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }

    public void setMaterialCode(String materialCode) 
    {
        this.materialCode = materialCode;
    }

    public String getMaterialCode() 
    {
        return materialCode;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setTotalIn(BigDecimal totalIn) 
    {
        this.totalIn = totalIn;
    }

    public BigDecimal getTotalIn() 
    {
        return totalIn;
    }

    public void setTotalOut(BigDecimal totalOut) 
    {
        this.totalOut = totalOut;
    }

    public BigDecimal getTotalOut() 
    {
        return totalOut;
    }

    public void setCurrentStock(BigDecimal currentStock) 
    {
        this.currentStock = currentStock;
    }

    public BigDecimal getCurrentStock() 
    {
        return currentStock;
    }

    public void setThreshold(BigDecimal threshold) 
    {
        this.threshold = threshold;
    }

    public BigDecimal getThreshold() 
    {
        return threshold;
    }

    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }

    public void setBatchNumber(String batchNumber) 
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber() 
    {
        return batchNumber;
    }

    public void setProductionDate(Date productionDate) 
    {
        this.productionDate = productionDate;
    }

    public Date getProductionDate() 
    {
        return productionDate;
    }

    public void setExpiryDate(Date expiryDate) 
    {
        this.expiryDate = expiryDate;
    }

    public Date getExpiryDate() 
    {
        return expiryDate;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialName", getMaterialName())
            .append("materialCode", getMaterialCode())
            .append("category", getCategory())
            .append("unit", getUnit())
            .append("totalIn", getTotalIn())
            .append("totalOut", getTotalOut())
            .append("currentStock", getCurrentStock())
            .append("threshold", getThreshold())
            .append("supplier", getSupplier())
            .append("batchNumber", getBatchNumber())
            .append("productionDate", getProductionDate())
            .append("expiryDate", getExpiryDate())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
